package com.hibase.core.interfacetask.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.Version;
import com.hibase.core.mybatis.entity.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 接口任务表
 * </p>
 *
 * @author hufeng
 * @since 2019-04-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class MdsInterfaceTask extends BaseDO {

    private static final long serialVersionUID = 1L;

//    /**
//     * 关联type表id
//     */
//    private String interfaceTypeId;

    /**
     * 接口业务类型code
     */
    private String businessTypeCode;

    /**
     * 发送方
     */
    private String senderSys;

    /**
     * 接收方
     */
    private String receiverSys;

    /**
     * 接收方url
     */
    @TableField(exist = false)
    private String receiverSysUrl;

    /**
     * 业务类型
     */
    private String businessType;

    /**
     * 业务单Id
     */
    private String businessId;

    /**
     * 业务单号
     */
    private String businessCode;

    /**
     * 请求报文
     */
    private String requestData;

    /**
     * 响应报文
     */
    private String responseData;

    /**
     * 处理状态
     * ready：准备
     * success：成功
     * fail：失败
     * notload : 未装载
     * loadfail : 装载失败
     */
    private String dealStatus;

    /**
     * 重试次数
     */
    private Integer retryCount;

    /**
     * 最新执行时间
     */
    private Date execTime;

    private String remarks;

    @Version
    private Integer version;
}
